/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package de.saar.penguin.give2.server;

import java.util.List;

/**
 *
 * @author Boris Fersing
 */
public class RoomDescription {

    private RoomDescriptionType type;
    private DescribedObject room;
    private ObjectType targetType;
    private List<DescribedObject> targets;
    private String descriptionMsg;

    public RoomDescription(DescribedObject room, ObjectType targetType) {
        this.room = room;
        this.type = RoomDescriptionType.OBJECT;
        this.targetType = targetType;
        this.targets = room.getContentForType(targetType);
        this.descriptionMsg = "the room with the " + targetType.toString();
    }

    public RoomDescription(DescribedObject room) {
        this.room = room;
        this.type = RoomDescriptionType.WALLPAPERS;
        this.descriptionMsg = "the room with the "+room.getColor().toString()+" wallpapers";
    }

    public DescribedObject getRoom(){
        return room;
    }

    public RoomDescriptionType getType(){
        return type;
    }

    public List<DescribedObject> getTargets(){
        return targets;
    }

    public String getDescription(){
        return descriptionMsg;
    }
}
